package com.grm.sys.mapper;

import com.grm.sys.model.SysDictData;
import com.grm.sys.request.dict.data.SysDictDataQueryParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysDictDataMapper {
    List<SysDictData> queryByType(@Param("type")String type);

    void deleteByTypes(@Param("types")List<String> types);

    List<SysDictData> querySelective(@Param("queryParam") SysDictDataQueryParam queryParam);

    void deleteByIds(@Param("ids")List<Long> ids);

    void insert(SysDictData sysDictData);

    void update(SysDictData sysDictData);

    SysDictData queryByTypeAndKey(@Param("type")String type,@Param("key")String key);

    SysDictData queryById(@Param("id")Long id);
}
